<template>
  <div class="shengmu6 base-background-img">
    <div class="z" @click="playFun(z)">
        <img src="~@/assets/youxiaoxianjie/shengmu/6/z.png">
    </div>
    <div class="c" @click="playFun(c)">
        <img src="~@/assets/youxiaoxianjie/shengmu/6/c.png">
    </div>
    <div class="s" @click="playFun(s)">
        <img src="~@/assets/youxiaoxianjie/shengmu/6/s.png">
    </div>
    <c-pdf @closePdf="closePdf" v-if="isshowpdf" :info="info" :infourl="pdfurl"></c-pdf>
  </div>
</template>

<script>
  export default {
    name: 'shengmu6',
    data () {
      return {
        isshowpdf: false,
        infourl: '',
        info: '',
        z: {
          url: 'static/youxiao/pdf/shengmu/z.pdf',
          data: []
        },
        c: {
          url: 'static/youxiao/pdf/shengmu/c.pdf',
          data: []
        },
        s: {
          url: 'static/youxiao/pdf/shengmu/s.pdf',
          data: []
        }
      }
    },
    methods: {
      playFun: function (item) {
        console.log(item)
        this.isshowpdf = true
        this.pdfurl = item.url
        this.info = item.data
      },
      closePdf: function () {
        this.isshowpdf = false
      }
    }
  }
</script>

<style scoped>
.shengmu6 {
  background: url(~@/assets/youxiaoxianjie/shengmu/6/bg.png);
}
.shengmu6 > div {
  position: absolute; 
}
.z {
  top: 282px;
  left: 282px;
}
.c {
  top: 288px;
  left: 590px;
}
.s {
  top: 280px;
  left: 860px;
}
</style>
